package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClassroomProjectApplicationMapper;
import com.ruoyi.system.domain.ClassroomProjectApplication;
import com.ruoyi.system.service.IClassroomProjectApplicationService;

/**
 * 项目申请Service业务层处理
 * 
 * @author coderChen
 * @date 2024-01-09
 */
@Service
public class ClassroomProjectApplicationServiceImpl implements IClassroomProjectApplicationService 
{
    @Autowired
    private ClassroomProjectApplicationMapper classroomProjectApplicationMapper;

    /**
     * 查询项目申请
     * 
     * @param id 项目申请主键
     * @return 项目申请
     */
    @Override
    public ClassroomProjectApplication selectClassroomProjectApplicationById(Long id)
    {
        return classroomProjectApplicationMapper.selectClassroomProjectApplicationById(id);
    }

    /**
     * 查询项目申请列表
     * 
     * @param classroomProjectApplication 项目申请
     * @return 项目申请
     */
    @Override
    public List<ClassroomProjectApplication> selectClassroomProjectApplicationList(ClassroomProjectApplication classroomProjectApplication)
    {
        return classroomProjectApplicationMapper.selectClassroomProjectApplicationList(classroomProjectApplication);
    }

    /**
     * 新增项目申请
     * 
     * @param classroomProjectApplication 项目申请
     * @return 结果
     */
    @Override
    public int insertClassroomProjectApplication(ClassroomProjectApplication classroomProjectApplication)
    {
        return classroomProjectApplicationMapper.insertClassroomProjectApplication(classroomProjectApplication);
    }

    /**
     * 修改项目申请
     * 
     * @param classroomProjectApplication 项目申请
     * @return 结果
     */
    @Override
    public int updateClassroomProjectApplication(ClassroomProjectApplication classroomProjectApplication)
    {
        return classroomProjectApplicationMapper.updateClassroomProjectApplication(classroomProjectApplication);
    }

    /**
     * 批量删除项目申请
     * 
     * @param ids 需要删除的项目申请主键
     * @return 结果
     */
    @Override
    public int deleteClassroomProjectApplicationByIds(Long[] ids)
    {
        return classroomProjectApplicationMapper.deleteClassroomProjectApplicationByIds(ids);
    }

    /**
     * 删除项目申请信息
     * 
     * @param id 项目申请主键
     * @return 结果
     */
    @Override
    public int deleteClassroomProjectApplicationById(Long id)
    {
        return classroomProjectApplicationMapper.deleteClassroomProjectApplicationById(id);
    }
}
